package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 口味mapper
 */
@Mapper
public interface DishFlavorMapper {
    /**
     * 根据菜品id获取口味
     */
    List<DishFlavor> getByDishId(Long id);

    /**
     * 添加口味
     */
    void add(List<DishFlavor> list);

    /**
     * 批量删除口味
     */
    void batchDelete(List<Long> ids);

    /**
     * 根据id删除口味
     */
    void delete(Long id);
}